package com.bby.user.service;


import com.bby.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-captcha")
public interface CaptchaService {

    @GetMapping("/captcha/verify")
    R verifyCaptcha(@RequestParam String id, @RequestParam String value);

    @GetMapping("/captcha/mail")
    R mail(@RequestParam String mail, @RequestParam String password);

    @GetMapping("/captcha/createMailToken")
    R createMailToken(@RequestParam String mail, @RequestParam String value);

    @GetMapping("/captcha/checkMailToken")
    R checkMailToken(@RequestParam String token, @RequestParam String mail);
}
